﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
    Inherits="System.Web.Mvc.ViewPage<grupo2DEWStudio7i.Dominio.Sala>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Studio7i
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Inscripción de Sala</h2>
    <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm("Inscribir", "Sala", FormMethod.Post)) {%>
        <%: Html.ValidationSummary(true) %>
        <fieldset>
            <legend>Campos</legend>            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre) %>
                <%: Html.ValidationMessageFor(model => model.Nombre) %>
            </div>
            <div class="editor-label">
                Local
            </div>
            <div class="editor-field"> 
                <%: Html.DropDownList("LocalCodigo", (IEnumerable<SelectListItem>)TempData["locales"]) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Caracteristicas) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Caracteristicas) %>
                <%: Html.ValidationMessageFor(model => model.Caracteristicas) %>
            </div>            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Capacidad) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Capacidad) %>
                <%: Html.ValidationMessageFor(model => model.Capacidad) %>
            </div>            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Comentarios) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Comentarios) %>
                <%: Html.ValidationMessageFor(model => model.Comentarios) %>
            </div>            
            <p>
                <input type="submit" value="Crear" />
            </p>
        </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index") %>
    </div>
</asp:Content>